# 导包
import requests

# 准备测试数据
url = "https://www.baidu.com"

# 发送http请求
response = requests.get(url)

# 打印返回码，返回文本结果
print(response.status_code)
print(response.text)



